
public class TestMain {
    public static void main(String[] args) {
        Solution s = new Solution();
        int[] nums = {3,2,2,3};
        int val = 3;

        System.out.println(s.removeElement(nums,val));

        nums = new int[]{0,1,2,2,3,0,4,2};
        val = 2;

        System.out.println(s.removeElement(nums,val));
    }
}
